<?php
 define('IN_DAEM', true); include_once './init/global.php'; include_once './init/ftp.func.php'; require_once("./init/db_mysql.php"); $filePath = "DownloadFile/2017/03/genggai/tuzhi/ECN00646107_TM733.GJE18AED3NMTA7B铭牌更改通知单.doc"; $filePath = mb_convert_encoding($filePath,'gb2312', 'utf-8'); $status = ftp_download_file($ftpConfig,$filePath); if($status) { mkdir(DAEM_DATA_ROOT."upload/CS/".dirname($filePath),0777,true); copy($status,DAEM_DATA_ROOT."upload/CS/".$filePath); unlink($status); echo "成功移动文件!";die; } else { gourl("图档文件缺失!请检查PDM下发状态是否存在异常，如仍未能解决问题，请联系管理员!","",-1); } 